function makeArray() {
     for (i = 0; i<makeArray.arguments.length; i++)
         this[i] = makeArray.arguments[i];
 }
 
function getFullYear(d) {
    var y = d.getYear();

    if (y >= 1900)
    {
       return y;
    }

    else
    {
       if (y <= 75)
       {
         y += 2000;
       }

       else
       {
         y += 1900;
       }

       return y;
    }
}

//var zone = "EDT";
var days = new makeArray("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var months = new makeArray("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");


function format_time(t) {
   
    var Hours = t.getHours();
    var Minutes = t.getMinutes();
    var Seconds = t.getSeconds();
    var Day = t.getDay();
    var Date = t.getDate();
    var Month = t.getMonth();
    var Year = getFullYear(t);
    
    var ampm = "AM";
    if (Hours < 10) {Hours = "0"+Hours;}

	if (Date < 10) {Date = "0"+Date;}
	if (Minutes < 10) {Minutes = "0"+Minutes;}
	if (Seconds < 10) {Seconds = "0"+Seconds;}

    timeString = "";
    //timeString += days[Day];
    //timeString += " ";
    timeString += Date;
    timeString += " ";
    timeString += months[Month];
    timeString += " ";
    timeString += Year;
    timeString += " ";
    timeString += Hours;
    timeString += ":";
    timeString += Minutes;
    timeString += ":";
    timeString += Seconds;
    //timeString += " ";
    //timeString += ampm;
    //timeString += " ";
    //timeString += zone;
   
   return timeString;
  
}

m = new Date(document.lastModified);


document.write('<table width="100%" cellspacing="0" cellpadding="1" border="0" id="subnav"><tr><td colspan="2"><font color="#666666">Last updated on: '
+format_time(m)
+'</font></td></tr><tr bgcolor="#000000"><td><a href="http://www.tp.edu.sg/home/privacy.htm" target="_blank"><font color="#FFFFFF">Privacy Statement</font></a><font color="#FFFFFF"> l </font><a href="http://www.tp.edu.sg/home/terms.htm" target="_blank"><font color="#FFFFFF">Terms Of Use</font></a></td><td align="right" height="20"><font color="#FFFFFF">Copyright 2011 Temasek Polytechnic. All Rights Reserved.</font></td></tr></table>');